<?php use_helper('I18N') ?>
<h1>Brands List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th><?php echo __('Code')?></th>
      <th>Name</th>
      <th>Description</th>
      <th>Logo</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($brands as $i => $brand): ?>
    <tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?> dataList">
      <td><a href="<?php echo url_for('brand/show?id='.$brand->getId()) ?>"><?php echo $brand->getId() ?></a></td>
      <td><?php echo $brand->getCode() ?></td>
      <td><?php echo $brand->getName() ?></td>
      <td><?php echo $brand->getDescription() ?></td>
      <td><?php include_partial('logo', array('brand' => $brand)) ?>
      </td>

      <td><?php echo $brand->getCreatedAt() ?></td>
      <td><?php echo $brand->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('brand/new') ?>">New</a>
